package com.glx.test.service;

import com.glx.test.pojo.Problem;
import com.glx.test.pojo.Submission;
import com.glx.test.pojo.TestCase;
import com.glx.test.response.ListResponse;
import com.glx.test.response.ProblemResponse;
import com.glx.test.response.SubmissionResponse;
import com.glx.test.response.SubmissionWithProblemResponse;

public interface ProblemService {
    ProblemResponse createProblem (Problem problem ) ;
    ProblemResponse insertTestCase (TestCase testCase) ;
    ListResponse SearchFullProblems(int pageNum,int pageSize);
    ProblemResponse getProblemById(Long id);
    SubmissionWithProblemResponse getSubmissionByUserId(Long user_id);
    SubmissionResponse getSubmissionByProblemId(Long problem_id);
    SubmissionResponse insertSubmission(Submission submission);
}
